package itheima.d05;

import itheima.d04.Student;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

public class Test {
    public static void main(String[] args) {
        Map<itheima.d04.Student,String> map =new TreeMap<>();
        map.put(new itheima.d04.Student("张三",18,"男"),"山东");
        map.put(new itheima.d04.Student("王五",19,"女"),"北京");
        map.put(new itheima.d04.Student("赵六",21,"男"),"上海");
        map.put(new itheima.d04.Student("胡一天",21,"男"),"广州");
        map.put(new Student("胡一天",21,"男"),"广州");

        map.forEach((k,v)-> System.out.println(k+"---"+v));

    }
}
